From: Alexandre Emsenhuber Date: Sun, 24 Mar 2013 07:50:14 +0000 (+0100) Subject: Fixes to Special:WithoutInterwiki form X-Git-Tag: 1.31.0-rc.0~20223^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=22847277a2e03b962d5bd5b43dc08f9fafbf4861;p=lhc%2Fweb%2Fwiklou.git Fixes to Special:WithoutInterwiki form - Use Html class instead of Xml where possible - Add line breaks to the output for better readability Change-Id: I794da047f0664913cfd7ceb00247145f9b7d3a1b --- diff --git a/includes/specials/SpecialWithoutinterwiki.php b/includes/specials/SpecialWithoutinterwiki.php index 3723740773..329b1adacc 100644 --- a/includes/specials/SpecialWithoutinterwiki.php +++ b/includes/specials/SpecialWithoutinterwiki.php @@ -51,14 +51,14 @@ class WithoutInterwikiPage extends PageQueryPage { $prefix = $this->prefix; $t = $this->getTitle(); - return Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . - Xml::openElement( 'fieldset' ) . - Xml::element( 'legend', null, $this->msg( 'withoutinterwiki-legend' )->text() ) . - Html::hidden( 'title', $t->getPrefixedText() ) . - Xml::inputLabel( $this->msg( 'allpagesprefix' )->text(), 'prefix', 'wiprefix', 20, $prefix ) . ' ' . - Xml::submitButton( $this->msg( 'withoutinterwiki-submit' )->text() ) . - Xml::closeElement( 'fieldset' ) . - Xml::closeElement( 'form' ); + return Html::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript ) ) . "\n" . + Html::openElement( 'fieldset' ) . "\n" . + Html::element( 'legend', null, $this->msg( 'withoutinterwiki-legend' )->text() ) . "\n" . + Html::hidden( 'title', $t->getPrefixedText() ) . "\n" . + Xml::inputLabel( $this->msg( 'allpagesprefix' )->text(), 'prefix', 'wiprefix', 20, $prefix ) . "\n" . + Xml::submitButton( $this->msg( 'withoutinterwiki-submit' )->text() ) . "\n" . + Html::closeElement( 'fieldset' ) . "\n" . + Html::closeElement( 'form' ); } function sortDescending() {